Set vs bag


Set{1,2,3}

Bag{1,2,3}

Set will only have 1 instance of objects - multiple instances resulting from operations will be stripped.

Bag can have multiple instances of objects.

See also: Collections

This page was edited 63 days ago on 09/19/2024. What links here